<div class="row m-n">
    <div class="crumbs-bar">
        <div yb-crumbs></div>
    </div>
    <div tabset type="tab">
        <div tab heading="配送指令入库" active="activeFlag[0]" ng-click="changeTab(0)">
            <div class="row wrapper-y-sm">
                <div class="operate-bar col-xs-4 font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="addData()"
                            ng-disabled="!btnPermission.deliveryOrderInAdd" title="{{!btnPermission.deliveryOrderInAdd?'无权限执行此操作':''}}">新增</button>
                    <button class="btn btn-operate m-r-sm" ng-click="postBatch()"
                            ng-disabled="!btnPermission.deliveryOrderInPosting" title="{{!btnPermission.deliveryOrderInAdd?'无权限执行此操作':''}}">一键过账</button>
                </div>
                <div class="search-bar wrapper-none col-xs-8">
                    <div class="btn-group m-l-xs pull-right">
                        <button type="button" class="btn btn-default base-color" ng-click="search()" title="刷新">
                            <i class="yb-icon ico-refresh"></i>
                        </button>
                        <button type="button" class="btn btn-default base-color" title="配置表格列"
                                ng-click="switchToolbar('ColConfig');">
                            <i class="yb-icon ico-set"></i>
                        </button>
                        <div class="btn btn-default base-color" ng-if="!!btnPermission.deliveryOrderInExport">
                            <div title="导出">
                                <i class="yb-icon ico-export-o"></i>
                            </div>
                            <ul class="more-tool">
                                <li yb-download download-url="exportParam.sectionUrl" download-param="exportParam.sectionParam"
                                    download-key="ids">
                                    <i class="yb-icon ico-export-o"></i> 导出
                                </li>
                                <li yb-download download-url="exportParam.allUrl" download-param="condition" download-duration="3">
                                    <i class="yb-icon ico-export-o"></i> 导出全部
                                </li>
                            </ul>
                        </div>
                    </div>
                    <button class="btn-advance pull-right m-l-xs" ng-click="switchToolbar('AdvanceSearch')">高级搜索</button>
                    <div class="input-group pull-right clearfix">
                        <input type="text" class="form-control txt-search" placeholder="入库单号"
                               ng-model="condition.deliveryOrder">
                        <span class="input-group-addon cursor-pointer" ng-click="search(1)">搜索</span>
                    </div>
                </div>
            </div>
            <div yb-advance-search show-toolbar="toolbarConfig.showAdvanceSearch" search-data="search(1)" reset-data="reset()"
                 date-picker="true"  hide-date="switchDataPicker()">
                <div class="advance-search m-t-sm">
                    <div class="form-group clearfix">
                        <label class="control-label">入库单号：</label>
                        <input type="text" name="deliveryOrder" ng-model="condition.deliveryOrder" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">配送指令：</label>
                        <input type="text" name="deliveryInstructionNo" ng-model="condition.deliveryInstructionNo" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">仓库编码：</label>
                        <input type="text" name="deliveryInstructionNo" ng-model="condition.warehouseCode" class="form-control">
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">入库状态：</label>
                        <select name="status" class="form-control" ng-model="condition.state"
                                ng-options="item.id as item.name for item in inState">
                            <option value="">请选择</option>
                        </select>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label">过账状态：</label>
                        <select name="status" class="form-control" ng-model="condition.postingState"
                                ng-options="item.id as item.name for item in postingState">
                            <option value="">请选择</option>
                        </select>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label">制单时间：</label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateStart"
                               datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(0)" is-open="datePickerFlag[0]" close-text="关闭"
                               ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')" modal-size="small" readonly>
                    </div>
                    <div class="form-group clearfix m-b-none">
                        <label class="control-label"></label>
                        <label class="control-label wave-line">~</label>
                    </div>
                    <div class="form-group clearfix">
                        <label class="control-label"></label>
                        <input type="text" class="form-control date-picker" ng-model="condition.createDateEnd"
                               datepicker-popup="{{'yyyy-MM-dd'}}" ng-click="switchDataPicker(1)" is-open="datePickerFlag[1]" close-text="关闭"
                               ng-change="checkDate(condition, 'createDateStart', 'createDateEnd')" modal-size="small" readonly>
                    </div>
                </div>
            </div>
            <div yb-col-config show-toolbar="toolbarConfig.showColConfig" ng-model="tbConf" col-fixed="true"
                 has-check-col="true" set-tb-style="setFixedWidth()"></div>
            <div class="main-area">
                <div yb-table-fixed class="table-fixed-wrap fix-left" ele-count="4" scroll-area="right">
                    <div class="th-fixed">
                        <table class="table-fixed border-none" width="{{tbConf.fixedWidth}}">
                            <thead>
                            <tr>
                                <th width="40" class="th-check text-center border-l-none">
                                    <div yb-check-box yb-checked="markInfo.allCheckedBill" yb-click="selectAll(dataList, 'Bill')"></div>
                                </th>
                                <th ng-repeat="itemCol in tbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-click="toSort(tableConfig.tableCol, $index)" ng-show="!!itemCol.isShow && !!itemCol.isFixed">
                                    <div yb-thead-operate ng-model="itemCol" target-width="tbConf.fixedWidth" fixed-width="tbStyle.fixedWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="th-scroll-x" ng-style="tbStyle.fixedWidth">
                        <table class="table-fixed border-none" width="{{tbConf.scrollWidth}}">
                            <thead>
                            <tr>
                                <th ng-repeat="itemCol in tbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-click="toSort(tbConf.tableCol, $index)"
                                    ng-show="!!itemCol.isShow && !itemCol.isFixed">
                                    <div yb-thead-operate ng-model="itemCol" target-width="tbConf.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll-y" ng-show="dataList.length > 0">
                        <table class="table-fixed border-none" width="{{tbConf.fixedWidth}}">
                            <tbody>
                            <tr ng-repeat="item in dataList track by $index" ng-click="selectRow($index)"
                                ng-class="{'row-selected': $index === markInfo.curRow}">
                                <td width="40" class="text-center border-l-none">
                                    <div yb-check-box yb-checked="item.isChecked" yb-click="selectSingle(item, dataList, 'Bill')"></div>
                                </td>
                                <td class="spill-dots" ng-repeat="itemCol in tbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-show="!!itemCol.isShow && !!itemCol.isFixed" title="{{item[itemCol.dataField]}}">
                                    <span ng-if="!itemCol.clickFn && itemCol.type !== 'operate'">{{item[itemCol.dataField]}}</span>
                                    <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="!!itemCol.clickFn">
                                        {{item[itemCol.dataField]}}
                                    </a>
                                    <div class="font-0" ng-if="itemCol.type === 'operate'">
                                        <button class="btn btn-operate m-r-xs" ng-click="printBill(item)"
                                                ng-disabled="!btnPermission.deliveryOrderInPrint" title="{{!btnPermission.deliveryOrderInPrint?'无权限执行此操作':''}}">打印</button>
                                        <button class="btn btn-operate m-r-xs"
                                            ng-disabled="item.state == 3 || item.postingState == 2"
                                            ng-click="editData(item)">编辑</button>
                                        <button class="btn btn-operate m-r-xs" ng-click="viewDetail(item)"
                                                ng-disabled="item.postingState === 2 || !btnPermission.deliveryOrderInPosting" title="{{!btnPermission.deliveryOrderInPosting?'无权限执行此操作':''}}">过账</button>
                                        <button type="button" class="btn btn-operate m-r-xs" ng-click="mandatoryFinish(item.deliveryOrder)"
                                                ng-disabled="item.state == 2 || item.state == 3 || !btnPermission.mandatoryFinish" title="{{!btnPermission.mandatoryFinish?'无权限执行此操作':''}}">结单</button>
                                        <button type="button" class="btn btn-operate m-r-xs" ng-click="inbound(item)" ng-if="curOrg.isBarcode === 0" ng-disabled="item.state != 0">入库</button>
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="dataList.length > 0" ng-style="tbStyle.fixedWidth">
                        <table class="table-fixed border-none" width="{{tbConf.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in dataList track by $index" ng-click="selectRow($index)"
                                ng-class="{'row-selected': $index === markInfo.curRow}" >
                                <td class="spill-dots" ng-repeat="itemCol in tbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-show="!!itemCol.isShow && !itemCol.isFixed" title="{{item[itemCol.dataField]}}">
                                    <span ng-if="!itemCol.clickFn && itemCol.type !== 'operate'">{{item[itemCol.dataField]}}</span>
                                    <a class="btn-operate m-r-xs" ng-click="tdClick(item, itemCol.clickFn)" ng-if="!!itemCol.clickFn">
                                        {{item[itemCol.dataField]}}
                                    </a>
                                    <div class="font-0" ng-if="itemCol.type === 'operate'">
                                        <button class="btn btn-operate m-r-xs" ng-click="printBill(item)"
                                                ng-disabled="!btnPermission.deliveryOrderInPrint" title="{{!btnPermission.deliveryOrderInPrint?'无权限执行此操作':''}}">打印</button>
                                        <button class="btn btn-operate m-r-xs" ng-click="editData(item)">编辑</button>
                                        <button class="btn btn-operate m-r-xs" ng-click="viewDetail(item)"
                                                ng-disabled="item.postingState === 2 || !btnPermission.deliveryOrderInPosting" title="{{!btnPermission.deliveryOrderInPosting?'无权限执行此操作':''}}">过账</button>
                                        <button type="button" class="btn btn-operate m-r-xs" ng-click="mandatoryFinish(item.deliveryOrder)"
                                                ng-disabled="item.state == 2 || item.state == 3 || !btnPermission.mandatoryFinish" title="{{!btnPermission.mandatoryFinish?'无权限执行此操作':''}}">结单</button>
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="dataList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area page-bar wrapper-y-sm clearfix">
                <div yb-check-box class="m-t-xs m-r-sm" yb-checked="markInfo.allCheckedBill" yb-check-name="全选"
                     yb-click="selectAll(dataList, 'Bill')"></div>
                <div yb-page-info ng-model="pageInfo" yb-refresh="search()"></div>
            </div>
        </div>
        <div tab heading="{{tabFlag.name}}" active="activeFlag[1]" ng-if="activeFlag[1]">
            <div class="main-area d-t-35 d-b-60">
                <form name="form" class="main-wrap form-horizontal single-col p-t clearfix" novalidate>
                    <div class="form-group m-b-sm">
                        <label class="col-xs-2 control-label"><i>*</i>配送指令：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input name="deliveryOrder" class="form-control" ng-model="detailInfo.deliveryInstructionNo" required yb-focus ng-readonly="tabFlag.type==1" />
                        </div>
                        <div class="col-xs-4 msg-block" ng-show="form.deliveryOrder.$dirty || (form.deliveryOrder.$invalid && submitted)">
                            <div class="error-msg" ng-if="form.deliveryOrder.$error.required && !form.deliveryOrder.focused">
                                <i class="yb-icon ico-times-circular"></i>必填项，请填写
                            </div>
                        </div>
                    </div>
                    <div class="form-group m-b-sm">
                        <label class="col-xs-2 control-label">行号：</label>
                        <div class="col-xs-5 wrapper-none">
                            <input name="rowNo" yb-number-input class="form-control" ng-model="detailInfo.rowNo" ng-readonly="tabFlag.type==1" />
                        </div>
                    </div>
                    <div class="form-group m-b-sm" ng-if="!isNJ">
                        <label class="col-xs-2 control-label">仓库编号：</label>
                        <div class="col-xs-5 wrapper-none">
                            <div yb-form-clear ng-model="detailInfo.warehouseCode" select-obj="selectWarehouse()"
                                 clear-form="clearWarehouse()" tips-name="仓库"></div>
                        </div>
                    </div>
                    <div class="form-group m-b-sm" ng-if="isNJ">
                        <label class="col-xs-2 control-label"><i>*</i>仓库编号：</label>
                        <div class="col-xs-5 wrapper-none">
                            <div yb-form-clear name="warehouseCode" ng-model="detailInfo.warehouseCode" select-obj="selectWarehouse()"
                                 clear-form="clearWarehouse()" tips-name="仓库" required yb-focus></div>
                        </div>
                        <div class="col-xs-4 msg-block" ng-show="form.warehouseCode.$dirty || (form.warehouseCode.$invalid && submitted)">
                          <div class="error-msg" ng-if="form.warehouseCode.$error.required && !form.warehouseCode.focused">
                              <i class="yb-icon ico-times-circular"></i>必填项，请选择
                          </div>
                      </div>
                    </div>
                    <div class="form-group m-b-sm">
                        <label class="col-xs-2 control-label">库区编号：</label>
                        <div class="col-xs-5 wrapper-none">
                            <div yb-form-clear ng-model="detailInfo.inArea" select-obj="selectArea()"
                                 clear-form="clearArea()" tips-name="库区" ></div>
                        </div>
                    </div>
                    <div class="form-group save-bar m-b-none">
                        <label class="col-xs-2 control-label"></label>
                        <div class="col-xs-5 wrapper-none">
                            <button type="button" class="btn btn-primary m-r-sm" ng-disabled="disableImport" ng-click="saveData(form.$valid, file)">
                                保存
                            </button>
                            <button type="button" class="btn btn-default" ng-click="changeTab(0)">取消</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
        <div tab heading="配送指令明细" active="activeFlag[2]" ng-if="activeFlag[2]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">入库单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.deliveryOrder || '-'}}">
                        {{orderObj.headerInfo.deliveryOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">配送指令：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.deliveryInstructionNo || '-'}}">
                        {{orderObj.headerInfo.deliveryInstructionNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">仓库编码：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.warehouseCode || '-'}}">
                        {{orderObj.headerInfo.warehouseCode || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.createName || '-'}}">
                        {{orderObj.headerInfo.createName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单时间：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{(orderObj.headerInfo.createDate | YbDate:'yyyy-MM-dd HH:mm:ss') || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">入库状态：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.state | ProgressStatus:"inDepot"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">过账状态：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.postingState | ProgressStatus:"posting"}}
                    </div>
                </div>
            </div>
            <div class="panel-bar clearfix">
                <div class="pull-left">
                    <i></i>零件信息
                </div>
            </div>
            <div class="row wrapper-y-xs">
                <div class="col-xs-12 operate-bar font-0">
                    <button class="btn btn-operate m-r-sm" ng-click="batchMaterielDebit()" translate>批量过账</button>
                </div>
            </div>
            <div class="main-area d-b-60" style="top:180px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{viewTbConf.scrollWidth}}">
                            <thead>
                            <tr>
                                <th width="40" class="th-check text-center border-l-none">
                                    <div yb-check-box yb-checked="markInfo.allCheckedBillDetail" yb-click="selectAll(orderObj.detailList, 'BillDetail')"></div>
                                </th>
                                <th width="120">
                                    操作
                                </th>
                                <th ng-repeat="itemCol in viewTbConf.tableCol track by $index" width="{{itemCol.width}}">
                                    <div yb-thead-operate ng-model="itemCol" target-width="viewTbConf.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{viewTbConf.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in orderObj.detailList track by $index">
                                <td width="40" class="text-center border-l-none">
                                    <div yb-check-box yb-checked="item.isChecked" yb-click="selectSingle(item, orderObj.detailList, 'BillDetail')"></div>
                                </td>
                                <td width="120">
                                    <button type="button" class="btn btn-operate" ng-click="materielDebit(orderObj.headerInfo.id, item)"
                                            ng-disabled="!!item.postingDisabled || item.state == 0 || item.postingState == 2 || !btnPermission.deliveryOrderInPosting" title="{{!btnPermission.deliveryOrderInPosting?'无权限执行此操作':''}}">过账</button>
                                    <button type="button" class="btn btn-operate" ng-click="mandatoryFinish(orderObj.headerInfo.deliveryOrder, orderObj.headerInfo.id, item.materialNo, item.rowNo)"
                                            ng-disabled="orderObj.headerInfo.state == 2 || orderObj.headerInfo.state == 3 || item.state == 2 || item.state == 3 || !btnPermission.mandatoryFinish" title="{{!btnPermission.mandatoryFinish?'无权限执行此操作':''}}">结单</button>
                                    
                                    <button type="button" class="btn btn-operate" ng-click="revoke(orderObj.headerInfo.id, item)" ng-if="!(isDL||isZHL||isYH)"
                                            ng-disabled="orderObj.headerInfo.state == 3 || item.state == 3 || item.realAmount == 0 || !btnPermission.deliveryOrderInRevoke" title="{{!btnPermission.deliveryOrderInRevoke?'无权限执行此操作':''}}">撤回</button>
                                    
                                    <button type="button" class="btn btn-operate" ng-click="chongxiao(item.id)" ng-if="isDL||isZHL||isYH"
                                            ng-disabled="!btnPermission.deliveryOrderInChongxiao" title="{{!btnPermission.deliveryOrderInChongxiao?'无权限执行此操作':''}}">冲销</button>
                                </td>
                                <td ng-repeat="itemCol in viewTbConf.tableCol track by $index"
                                    width="{{itemCol.width}}"
                                    class="spill-dots"
                                    title="{{item[itemCol.dataField]}}"
                                    ng-show="!!itemCol.isShow">
                                    {{item[itemCol.dataField]}}
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.detailList.length === 0">暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="mandatoryFinish(orderObj.headerInfo.deliveryOrder, orderObj.headerInfo.id)"
                        ng-disabled="orderObj.headerInfo.state == 2 || orderObj.headerInfo.state == 3 || !btnPermission.mandatoryFinish" title="{{!btnPermission.mandatoryFinish?'无权限执行此操作':''}}">结单</button>
                <button type="button" class="btn btn-default m-r-sm" ng-click="cancel()">返回</button>
            </div>
        </div>
        <div tab heading="入库" active="activeFlag[3]" ng-if="activeFlag[3]">
            <div class="m-t-sm form-up-tb clearfix">
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">入库单号：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.deliveryOrder || '-'}}">
                        {{orderObj.headerInfo.deliveryOrder || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">配送指令：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.deliveryInstructionNo || '-'}}">
                        {{orderObj.headerInfo.deliveryInstructionNo || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">仓库编码：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.warehouseCode || '-'}}">
                        {{orderObj.headerInfo.warehouseCode || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单人：</label>
                    <div class="col-xs-8 wrapper-none spill-dots" title="{{orderObj.headerInfo.createName || '-'}}">
                        {{orderObj.headerInfo.createName || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">制单时间：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{(orderObj.headerInfo.createDate | YbDate:'yyyy-MM-dd HH:mm:ss') || "-"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">入库状态：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.state | ProgressStatus:"inDepot"}}
                    </div>
                </div>
                <div class="form-group col-xs-3 m-b-sm">
                    <label class="col-xs-4 m-b-n text-right max-w-100">过账状态：</label>
                    <div class="col-xs-8 wrapper-none spill-dots">
                        {{orderObj.headerInfo.postingState | ProgressStatus:"posting"}}
                    </div>
                </div>
            </div>
            <div class="panel-bar clearfix">
                <div class="pull-left">
                    <i></i>零件信息
                </div>
            </div>
            <div class="main-area d-b-60" style="top:180px;">
                <div yb-table-fixed class="table-fixed-wrap">
                    <div class="th-scroll-x">
                        <table class="table-fixed border-none" width="{{inTbConf.scrollWidth}}">
                            <thead>
                            <tr>
                                <th ng-repeat="itemCol in inTbConf.tableCol track by $index" width="{{itemCol.width}}">
                                    <div yb-thead-operate ng-model="itemCol" target-width="inTbConf.scrollWidth"></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                    <div class="td-scroll" ng-show="orderObj.detailList.length > 0">
                        <table class="table-fixed border-none" width="{{inTbConf.scrollWidth}}">
                            <tbody>
                            <tr ng-repeat="item in orderObj.detailList track by $index">
                                <td ng-repeat="itemCol in inTbConf.tableCol track by $index" width="{{itemCol.width}}"
                                    ng-class="{'wrapper-none': itemCol.inputType === 'func'}">

                                    <div class="spill-dots" ng-if="!itemCol.input || item.state == 2 || item.state == 3" title="{{item[itemCol.dataField]}}">
                                        {{item[itemCol.dataField]}}
                                    </div>

                                    <div ng-if="!!itemCol.input && itemCol.inputType === 'func' && (item.state == 0  || item.state == 1)" class="td-edit pos-r">
                                        <div yb-form-clear class="td-edit" ng-model="item[itemCol.dataField]" select-obj="selDepot(item)"
                                            clear-form="clearDepot(item)" tips-name="储位"
                                            title="{{item[itemCol.dataField]}}" ng-class="{'error': !!item.locationErr}">
                                        </div>
                                        <div class="pos-a tool-tips" ng-if="!!item.locationErr && !item.locationCode">
                                            <i class="triangle"></i>
                                            <div class="msg" translate>请选择储位</div>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <div class="no-data w-full text-center p-t" ng-show="orderObj.detailList.length === 0" translate>暂时没有数据</div>
                </div>
            </div>
            <div class="bottom-area btn-bar text-center clearfix">
                <button type="button" class="btn btn-primary m-r-sm" ng-click="inboundSubmit()" translate>确认入库</button>
                <button type="button" class="btn btn-default" ng-click="cancel()" translate>取消</button>
            </div>
        </div>
    </div>
</div>